/**
 * ------------------------------------------------------
 *  用户相关的API请求
 * ------------------------------------------------------
 *
 * Note: .
 *
 */

import { request } from '@/utils'

/**
 * 用户登录
 * @param {array} formData
 * @returns 
 */
export function loginAPI(formData){
    return request({
        url:'/auth',
        method:'POST',
        data:formData
    })
}

/**
 * 获取当前登录用户信息
 * @returns 
 */
export function getProfileAPI(){
    return request({
        url:'/users/profile',
        method:'GET'
    })
}

